<template>
  <el-config-provider :locale="lang[langStore.lang]">
    <RouterView></RouterView>
  </el-config-provider>
</template>

<script setup>
import { RouterLink, RouterView } from 'vue-router';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import en from 'element-plus/es/locale/lang/en'
import { ref, onMounted, onBeforeUnmount } from 'vue';
import { uselangStore } from '@/store/modules/lang'
const langStore = uselangStore()
const lang = {
  zhCn,
  en,
}
</script>

<style lang="less" scoped>

</style>